package com.cloudream.core.mapper;

import com.cloudream.core.dto.InfoDTO;
import com.cloudream.core.utils.Pager;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository("infoMapper")
public interface InfoMapper {
    String[] ORDERBY = {"id"};

    int insert(InfoDTO dto);

    int delete(@Param("id") String id);

    InfoDTO select(String id);

    List<InfoDTO> list(
            @Param("pager") Pager pager,
            @Param("param") Map<String, Object> args);

    long count(@Param("param") Map<String, Object> args);

    InfoDTO sum(@Param("param") Map<String, Object> args);
}